package com.bs.biaoge.util.excel;

import com.bs.biaoge.util.ExcelUtil;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.List;
import java.util.Map;

/**
 * @author 小姚
 * @pakeageName:com.bs.biaoge.util.excel
 * @ClassName:ExcelModelPropertyValueTest
 * @Descirption:
 * @data 2023/3/4 23:32
 */
public class ExcelModelPropertyValueTest {
    public static void main(String[] args) throws FileNotFoundException {
        String[] title=new String[]{"uid","uname","age"};
        FileInputStream inputStream=new FileInputStream("D:\\学生表.xlsx");
        Map<String, List<Object[]>> excelMap = ExcelUtil.getExcelMap(inputStream);
        ExcelModelPropertyValue propertyValue=new ExcelModelPropertyValue();
        boolean istrue = propertyValue.getExcelModel(title, excelMap);
        System.out.println(istrue);
    }
}
